package day05.ti.Cha;

import java.util.Arrays;

public class Lian02 {
    public static void main(String[] args) {
        pai();
    }

    private static void pai() {
        int[] arr = {431,54,25,25,26,45,2,4,65,3,64,6,46,7,54};
        Arrays.sort(arr);
        String s=Arrays.toString(arr);
        System.out.println(s);
        int a=Arrays.binarySearch(arr,2);
        System.out.println(a);
        int b=Arrays.binarySearch(arr,200);
        System.out.println(b);
    }
}
